Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: use embed pg for test, go-cmp to check db time #11

Merged
merged 2 commits into from
Nov 30, 2023

Conversation

hunjixin
Copy link
Collaborator

  1. use embed postgres library to mock database
  2. use go-cmp to check time type due to precision lose when save to db.

@hunjixin hunjixin linked an issue Nov 29, 2023 that may be closed by this pull request
Copy link

codecov bot commented Nov 29, 2023

Codecov Report

❗ No coverage uploaded for pull request base (main@1123a6a). Click here to learn what that means.
The diff coverage is n/a.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main      #11   +/-   ##
=======================================
  Coverage        ?   34.61%           
=======================================
  Files           ?        5           
  Lines           ?      104           
  Branches        ?        0           
=======================================
  Hits            ?       36           
  Misses          ?       61           
  Partials        ?        7           

@hunjixin hunjixin marked this pull request as draft November 30, 2023 02:00
@hunjixin hunjixin force-pushed the feat/add_pg_db_test branch from 904b6c7 to 79d3a37 Compare November 30, 2023 02:14
@hunjixin hunjixin force-pushed the feat/add_pg_db_test branch from 79d3a37 to 93f3da0 Compare November 30, 2023 02:18
@hunjixin hunjixin marked this pull request as ready for review November 30, 2023 02:20
@Brownjy Brownjy merged commit 545f8e6 into main Nov 30, 2023
4 checks passed
@hunjixin hunjixin deleted the feat/add_pg_db_test branch December 8, 2023 05:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat: add test example for database(pg)
2 participants